﻿#ifndef __VPD_TASK_H
#define __VPD_TASK_H
#include <stdio.h>
#include <string.h>

#include "lwip/sockets.h"
#include "netif/xadapter.h"
#include "lwipopts.h"
#include "xil_printf.h"
#include "FreeRTOS.h"
#include "task.h"

#include "vpd_system.h"
#define FPGA_DELAY_TIME   1
#define QUEUE_DELAY_TIME  500
extern xQueueHandle  dmaQueueHandle;
extern xSemaphoreHandle dmaSemaphoreHandle;

//void free_queue(vpdQueueStruct * p_queue);

void vpd_init();
//int  	sd_init();
//int 	sd_read(char *fileName,char *data,int len);
//int     sd_write(char *fileName,char *data,int len);
//xTaskHandle vpd_new_task( const char *pcName, void( *pxThread )( void *pvParameters ), void *pvArg, int iStackSize, int iPriority );
//void tcp_send_task(void *p);
//void dma_read_task(void *p);
void vpd_task(void *p);
#endif
